package com.etoak.stock.pojo.domin;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author :孙有泽
 * @time: 2024-9-18
 * @desription : 定义大盘数据的领域对象
 */
@Data
@ApiModel("国内大盘指数")
public class InnerMarketDomain {
    @ApiModelProperty(value = "大盘编码")
    private String code;//大盘编码

    @ApiModelProperty(value = "指数名称")
    private String name;//指数名称

    @ApiModelProperty(value = "开盘点")
    private BigDecimal openPoint;//开盘点

    @ApiModelProperty(value = "当前点")
    private BigDecimal curPoint;//当前点

    @ApiModelProperty(value = "前收盘点")
    private BigDecimal preClosePoint;//前收盘点

    @ApiModelProperty(value = "交易量")
    private Long tradeAmt;//交易量

    @ApiModelProperty(value = "交易金额")
    private BigDecimal tradeVol;//交易金额

    @ApiModelProperty(value = "涨跌值")
    private BigDecimal upDown;//涨跌值

    @ApiModelProperty(value = "涨幅")
    private BigDecimal rose;//涨幅

    @ApiModelProperty(value = "振幅")
    private BigDecimal amplitude;//振幅

    @ApiModelProperty(value = "当前时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date curTime;//当前时间

}
